cordova.define("com.menpuji.hostenv.hostEnv", function(require, exports, module) {

var exec = require('cordova/exec');
var argscheck = require('cordova/argscheck');

var hostEnv = function () {
};

hostEnv.prototype.disableIdleSleep = function(timeout, successCallback, errorCallback) {
    argscheck.checkArgs('NFF','hostEnv.start', arguments);
    exec(successCallback, errorCallback, "hostEnv", "disableIdleSleep", [timeout]);
};

hostEnv.prototype.enableIdleSleep = function() {
    exec(null, null, "hostEnv", "enableIdleSleep", []);
};
hostEnv.prototype.isOnLine = function() {
    return navigator.onLine;
};

module.exports = new hostEnv();
});
